import java.util.Scanner;
public class a7{
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入一个数字：");
        int a=scanner.nextInt();
        System.out.println("请输入一个数字：");
        int b=scanner.nextInt();
        System.out.println("请输入一个数字：");
        int c=scanner.nextInt();
        if(a>b&&a>c){
            if(b>c){
                System.out.println(c+" "+b+" "+a);
            }
            if(b<c){
                System.out.println(b+" "+c+" "+a);
            }}
            if(b>c&&b>a){
                if(a>c){
                    System.out.println(c+" "+a+" "+b);
                }
        }
            if(c>a&&c>b){
                if(b>a){
                    System.out.println(a+" "+b+" "+c);
                }
                if(b<a){
                    System.out.println(b+" "+a+" "+c);
                }
            }
    }
}
